package com.swak.json.auto_type;

public class Person implements AutoCloseable {
	private String name;
	private int age;
	private String gender;

	public Person() {
		System.out.println("no-arg construct invoked!!!");
	}

	public Person(String name, int age, String gender) {
		this.name = name;
		this.age = age;
		this.gender = gender;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getAge() {
		System.out.println("getAge invoked!!!");
		return age;
	}

	public void setAge(int age) {
		this.age = age;
		System.out.println("setAge invoked!!!");
	}

	public String getGender() {
		return gender;
	}

	public void setGender(String gender) {
		this.gender = gender;
	}

	@Override
	public void close() throws Exception {
	}
}
